export interface DeviceData {
    dataChina: Array<any>,
    deviceCount: {
      device: Array<any>,
      total: number
    },
    deviceInto: any,
    deviceLevel: Array<any>
  }
  
  export const DeviceState = {
    ALL: 0,
    RETURN_FACTORY: 1
  }
  
  export const ThreatTab = {
    RANGE: 1,
    GRADE: 2
  }
  
  export const taskType = {
    WATING: 1,
    ING: 2,
    DONE: 3
  }
  
  export const Risk = {
    0: '不明',
    1: '轻危',
    2: '低危',
    3: '中危',
    4: '高危',
    5: '超危'
  }
  
  export const RiskName = {
    '不明': 0,
    '轻危': 1,
    '低危': 2,
    '中危': 3,
    '高危': 4,
    '超危': 5
  }
  
  export const ThreatRisk = {
    0: '未知',
    1: '高危',
    2: '中危',
    3: '低危',
  }
  
  export const ThreatRiskColor = {
    0: '#F85546',
    1: '#FF805A',
    2: '#FCAB2A',
    3: '#647792',
    4: '#93ACC2',
    5: '#B4C8DB'
  }
  
  export const ThreatRiskChartType = {
    0: 'a',
    1: 'b',
    2: 'c',
    3: 'd'
  }
  
  export const RiskColor = {
    0: '#B4C8DB',
    1: '#93ACC2',
    2: '#647792',
    3: '#FCAB2A',
    4: '#FF805A',
    5: '#F85546'
  }
  
  
  export const RiskChartType = {
    0: 'a',
    1: 'b',
    2: 'c',
    3: 'd',
    4: 'e',
    5: 'f'
  }
  
  export const loopleType = {
    'system': '系统漏洞',
    'office': 'Office漏洞',
    'soft': '软件漏洞'
  }
  
  export const outTitle = ['未检测', '检测合格', '检测不合格']
  export const innerTitle = ['已上线', '已下线', '待入网', '已返厂', '已退役']
  export const chinaType = {
    CHINA: 1,
    OTHER: 0
  }
  
  export const testStateType = {
    NO: 3,
    ING: 2,
    PASS: 1,
    NOPASS: 0
  }
  
  
  export const testStateColorTheme = {
    'Blue': {
      3: '#D3E2ED',
      2: '#804DEC',
      1: '#16C68D',
      0: '#F76659'
    },
    'Green': {
      3: '#DCDEE6',
      2: '#FCAB2A',
      1: '#4EB46A',
      0: '#F85546'
    },
  }
  
  export const testStateColorDeviceTheme = {
    'Blue': ['#FFCF3C', '#abbcfd', '#2D5BFF', '#D3E2ED'],
    'Green': ['#FCAB2A', '#4EB46A',  '#F85546', '#DCDEE6'],
  }
  
  
  export const taskColorTheme = {
    'Blue': ['#2D5BFF', '#FFB45C', '#804DEC', '#FFCF3C', '#D3E2ED', '#16C68D'],
    'Green': ['#4EB46A', '#FF805A', '#804DEC', '#FCAB2A', '#1CC1AE', '#456CF7']
  }
  
  export const deviceStateColorTheme = {
    'Blue': {
      '已退役': '#2D5BFF',
      '已返厂': '#804DEC',
      '已下线': '#d6e1ec',
      '已上线': '#5cc391',
      '待入网': '#FFCF3C'
    },
    'Green': {
      '已退役': '#FCAB2A',
      '已返厂': '#456CF7',
      '已下线': '#FF805A',
      '已上线': '#4EB46A',
      '待入网': '#804DEC'
    }
  }
  
  
  export const chineseColorTheme = {
    'Blue': ['rgba(45, 91, 255, 0.1)', 'rgba(45, 91, 255, 0.3)', 'rgba(45, 91, 255, 0.9)'],
    'Green': ['rgba(58,155,115,0.1)', 'rgba(58,155,115,0.3)', 'rgba(58,155,115,0.9)']
  }
  
  export const chineseBorderTheme = {
    'Blue': '#165DFF',
    'Green': '#3A9B73'
  }
  
  export const deviceStateType = {
    '已退役': 5,
    '已返厂': 4,
    '已下线': 3,
    '已上线': 2,
    '待入网': 1
  }
  
  export const colorBarTheme = {
    'Blue': '#577CFF',
    'Green': '#3A9B73'
  }
  
  // export const colorAllBlue = {
  //   9: '#2D5BFF',
  //   8: '#426BFF',
  //   7: '#577CFF',
  //   6: '#6C8CFF',
  //   5: '#819DFF',
  //   4: '#96ADFF',
  //   3: '#ABBDFF',
  //   2: '#C0CEFF',
  //   1: '#D5DEFF',
  //   0: '#EAEFFF'
  // }
  
  export const deviceGrade = {
    3: '高',
    2: '中',
    1: '低'
  }
  